package global

import (
	"context"
	"dfx_cmdb/cmdb-agent/config"

	"github.com/zeromicro/go-zero/core/logc"
)

func InitLogConfig(ctx context.Context, c *config.Config) {
	logcConfig := logc.LogConf{
		Encoding:   c.LogConf.Encoding,
		Level:      c.LogConf.Level,
		Stat:       c.LogConf.Stat,
		TimeFormat: c.LogConf.TimeFormat,
	}
	logc.MustSetup(logcConfig)
}
